<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php echo html::stylesheet('Css/main.css',false); ?>
<?php echo html::stylesheet('Css/fonts.css',false); ?>
<?php echo html::stylesheet('Css/reset.css',false); ?>
<?php echo html::stylesheet('Css/jqueryslidemenu.css',false); ?>
<?php echo html::script('Javascript/jqueryslidemenu',false); ?>
<?php echo html::script('Javascript/jquery',false); ?>
<title><?php echo($title); ?></title>
<script type="text/javascript">
var arrowimages = {down:["downarrowclass","<?php echo url::base();?>images/down.gif", 23], right:["rightarrowclass", "<?php echo url::base();?>images/right.gif"]};
jqueryslidemenu.buildmenu("slidemenu", arrowimages);
</script>
</head>
<body>
<div class="container" align="center"><?php echo html::image('images/phpwind73.png');?>

<?php  JQuerySlideTopMenu::buildMenu('slidemenu',
array(
		'items'=>array(
array('label'=>'Home', 'url'=>array('index/index')),
array('label'=>'WIKI', 'url'=>'#', 'subs'=>array(
array('label'=>'New article', 'url'=>'#'),
), 'visible'=>Auth::instance()->logged_in()),
array('label'=>'Blog', 'url'=>'#', 'subs'=>array(
array('label'=>'New post', 'url'=>'#'),
), 'visible'=>Auth::instance()->logged_in()),
array('label'=>'Admin tools', 'url'=>'#', 'subs' => array(
array('label'=>'Users', 'url'=>'#', 'subs' => array(
array('label'=>'Add new user', 'url'=>array('auth.users/create')),
array('label'=>'List', 'url'=>array('auth.users/list')),
)),
array('label'=>'Customers', 'url'=>'#', 'subs' => array(
array('label'=>'Add new', 'url'=>'#'),
array('label'=>'List', 'url'=>'#'),
)),
array('label'=>'Projects', 'url'=>'#', 'subs' => array(
array('label'=>'Add new', 'url'=>'#'),
array('label'=>'List', 'url'=>'#'),
)),
array('label'=>'Accounting setup', 'url'=>'#', 'subs' => array(
array('label'=>'Employees', 'url'=>'#'),
array('label'=>'Bank accounts', 'url'=>'#'),
array('label'=>'Settings', 'url'=>'#'),
)),
array('label'=>'Roles & Permissions', 'url'=>'#'),
array('label'=>'Settings', 'url'=>'#'),
), 'visible'=>Auth::instance()->logged_in()),
array('label'=>'My profile', 'url'=>'#', 'visible'=>Auth::instance()->logged_in()),
array('label'=>'Login', 'url'=>array('user/login'), 'visible'=>!Auth::instance()->logged_in()),
array('label'=>'Logout', 'url'=>array('user/logout'), 'visible'=>Auth::instance()->logged_in()),
array('label'=>'Welcome '.$username ,'url'=>'#','visible'=>Auth::instance()->logged_in())
)
)
);
?> <?php echo $content ?></div>
<div id="footer" align="center">
<p>Powered by <a href="http://code.google.com/p/ci-cms/"></a><br />
<?php echo(Kohana::lang('core.stats_footer'));?></p>
</div>
</body>
</html>
